﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>后台管理系统</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="/css/admin.css" type=text/css rel=stylesheet>
<SCRIPT src="/js/jq126.js"></SCRIPT>

<SCRIPT language=javascript>

</SCRIPT>

<META content="MSHTML 6.00.2900.3527" name=GENERATOR></HEAD>
<BODY style="BACKGROUND-COLOR: #c5def5">
<DIV class=top>
	<DIV class=toptab><SPAN>&nbsp; &nbsp;后台管理</SPAN></DIV>
</DIV>
<DIV class=main id=main_div>
<DIV class=mainLeft>
<DIV class=TabOff>用户管理</DIV>
<TABLE class=subtab style="DISPLAY: none" cellSpacing=0 cellPadding=0 
width="98%" border=0>
  <TBODY>
  <TR>
		<TD>
		<A href="no.html">个人管理</A>
		</TD>
	</TR>
	<TR>
		<TD>
		<A href="no.html">企业管理</A>
		</TD>
	</TR>	  
</TBODY>
</TABLE>
<DIV class=TabOff>B2B管理</DIV>
<TABLE class=subtab style="DISPLAY: none" cellSpacing=0 cellPadding=0 
width="98%" border=0>
<TBODY>

	<TR>
		<TD>
		<A href="no.html">商品管理</A>
		</TD>
	</TR>
	<TR>
		<TD>
		<A href="no.html">类别管理</A>
		</TD>
	</TR>
</TBODY>
</TABLE>
<DIV class=TabOff>积分管理</DIV>
<TABLE class=subtab style="DISPLAY: none" cellSpacing=0 cellPadding=0 
width="98%" border=0>
<TBODY>
	<TR>
		<TD>
		<A href="score/ScoreTypeList.aspx">积分类型管理</A>
		</TD>
	</TR>
	<TR>
		<TD>
		<A href="score/ScoreType.aspx">积分类型添加</A>
		</TD>
	</TR>
	
	<TR>
		<TD>
		<A href="score/ScoreLogList.aspx">积分操作记录</A>
		</TD>
	</TR>
	<TR>
		<TD>
		<A href="score/ScoreLog.aspx">手动操作积分</A>
		</TD>
	</TR>

</TBODY></TABLE>
<DIV class=TabOff>网站设置</DIV>
<TABLE class=subtab style="DISPLAY: none" cellSpacing=0 cellPadding=0 
width="98%" border=0>
  <TBODY>
          <TR>
    <TD><A href="config/ClassKeyword_List.aspx">分类关键词设置</A></TD></TR>
    
  </TBODY></TABLE>
<DIV class=TabOff style="HEIGHT: 30px">个人操作</DIV>
<TABLE class=subtab style="DISPLAY: none" cellSpacing=0 cellPadding=0 
width="98%" border=0>
  <TBODY>
  <TR>
    <TD><A href="pwd.aspx">修改密码</A></TD></TR>
  <TR>
    <TD><A 
  href="logout.aspx">退出登录</A></TD></TR></TBODY></TABLE>
  </DIV>
<DIV class=mainRight id=mainRigth_div><IFRAME id=iframex 
style="BORDER-RIGHT: #333333 1px solid; BORDER-TOP: #333333 1px solid; Z-INDEX: 6; BORDER-LEFT: #333333 1px solid; BORDER-BOTTOM: #333333 1px solid; BACKGROUND-COLOR: #ffffff" 
name=iframex src="" frameBorder=0 width="100%" 
scrolling=yes height="100%"></IFRAME></DIV>
<DIV class=clear></DIV></DIV>
<DIV class=box id=RemindBox style="DISPLAY: none; PADDING-TOP: 5px">
<DIV style="FLOAT: left; WIDTH: 360px"></DIV>
<DIV id=closeRemind style="FLOAT: left; WIDTH: 30px; MARGIN-RIGHT: 5px">关闭</DIV>
<DIV style="CLEAR: both"></DIV>
<DIV id=ContentBox></DIV></DIV>
<SCRIPT language=javascript>
changeSize();

$(".mainLeft table a").attr('target','iframex');
$("#duanxin").attr('target','_blank');

$(".mainLeft div").click(function(){
	if($(this).attr('class')=='TabOff')
	{
		$(".mainLeft div").attr('class','TabOff');
		$(".mainLeft table").hide();
		$(this).attr('class','TabOn');
		$(this).next().show();
	}
	else
	{
		$(this).attr('class','TabOff');
		$(this).next().hide();
	}
});

function changeSize()
{
	var browser_weigth=document.documentElement.clientWidth;
	var browser_height=document.documentElement.clientHeight;
	//alert(browser_weigth+"  "+browser_height);
	var main_div=document.getElementById("main_div");
	var mainRigth_div=document.getElementById("mainRigth_div");
	main_div.style.width=browser_weigth+"px";
	main_div.style.height=browser_height-43+"px";
	mainRigth_div.style.width=browser_weigth-172+"px";
	mainRigth_div.style.height=browser_height-64+"px";	

}

var interid;
function startListen()
{
	getRemind();
	setInterval("getRemind()",180000);
}
startListen();

function getRemind()
{
	var url="/cardcenter/Remind/kefu.aspx?x="+Math.random();
	
	jQuery.get(url,function(data){
		if(data=='1')
		{
			if(interid==undefined)
			{
				alertx();
			}
		}
		else
		{
			StopAlarm();
		}
	})
}
function StopAlarm()
{
	clearInterval(interid);
	interid=undefined;
	document.title=title;
}

function alertx(str)
{
	//window.focus();
	showRemind();
	interid=setInterval("flash_title()",600);
}

var title='会员卡管理系统';
var title2='您有新提醒';
var t=title;
function flash_title(str)
{
	if(t==title){
		document.title=title2;
		t=title2;
		window.focus();
	}else{
		document.title=title;
		t=title;
	}
}

function showRemind()
{
	var url="/cardcenter/Remind/kefu.aspx?show=1&x="+Math.random();
	jQuery.get(url,function(data){
		var RemindBox=document.getElementById('RemindBox');
		var CloseRemind=document.getElementById('closeRemind');
		RemindBox.style.display="block";
		RemindBox.style.position="absolute";
		RemindBox.style.zIndex="9999";
		RemindBox.style.width="400px";
		$(RemindBox).css('backgroundColor','#ffffff');
		$(RemindBox).css('borderTop','4px #ff9900 solid');
		RemindBox.style.height="150px";
		CloseRemind.setAttribute('align','right');
		CloseRemind.onclick=closeRemind;
		CloseRemind.style.cursor="hand";
		RemindBox.style.top=document.body.clientHeight/2-125+document.body.scrollTop+"px";
		RemindBox.style.left=document.body.clientWidth/2-200+document.body.scrollLeft+"px";
		document.getElementById('ContentBox').innerHTML=data;
		
		$('#main_div').hide();
	})
	
}
function closeRemind(){
	StopAlarm();
   if(document.getElementById('RemindBox').style.display='block'){
    	document.getElementById('RemindBox').style.display='none';
		$('#main_div').show();
   }
}


function GetUser()
{
	var url='/cardcenter/login.aspx?action=get&d='+Math.random();
	jQuery.get(url,function(data){
		if(data!='')
		{
			$('#loguser').html(data+'已登录');
		}
		else
		{
			$('#loguser').html('');
		}
	});
}
GetUser();
</SCRIPT>
</BODY></HTML>
